home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb.new / gdb-3.98 / readline / configure < prev    next >
Encoding:
Text File  |  1991-08-01  |  19.3 KB  |  694 lines

  1. #!/bin/sh
  2. # Please do not edit this file.  It is generated automatically from
  3. # configure.in and a configure template.
  4. configdirs=
  5.  
  6. #!/bin/sh
  7.  
  8. # Configuration script template
  9. #   Copyright (C) 1988, 1990, 1991 Free Software Foundation, Inc.
  10.  
  11. #This file is part of GNU.
  12.  
  13. # This program is free software; you can redistribute it and/or modify
  14. # it under the terms of the GNU General Public License as published by
  15. # the Free Software Foundation; either version 2 of the License, or
  16. # (at your option) any later version.
  17. # This program is distributed in the hope that it will be useful,
  18. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. # GNU General Public License for more details.
  21. # You should have received a copy of the GNU General Public License
  22. # along with this program; if not, write to the Free Software
  23. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  24.  
  25. # $Id: configure,v 1.22 1991/07/20 01:22:30 rich Exp $
  26.  
  27. #
  28. # Shell script to create proper links to machine-dependent files in
  29. # preparation for compilation.
  30. #
  31. # If configure succeeds, it leaves its status in config.status.
  32. # If configure fails after disturbing the status quo, 
  33. #     config.status is removed.
  34. #
  35.  
  36. remove=rm
  37. hard_link=ln
  38. symbolic_link='ln -s'
  39.  
  40. #for Test
  41. #remove="echo rm"
  42. #hard_link="echo ln"
  43. #symbolic_link="echo ln -s"
  44.  
  45. progname=$0
  46.  
  47. # clear some things potentially inherited from environment.
  48. ansi=
  49. defaulttargets=
  50. destdir=
  51. fatal=
  52. hostsubdir=
  53. Makefile=Makefile
  54. Makefile_in=Makefile.in
  55. norecurse=
  56. removing=
  57. srcdir=
  58. srctrigger=
  59. target=
  60. targets=
  61. targetsubdir=
  62. template=
  63. verbose=
  64.  
  65. for arg in $*;
  66. do
  67.     case ${arg} in
  68.     -ansi | +ansi)
  69.         ansi=true
  70.         ;;
  71.     -destdir=* | +destdir=* | +destdi=* | +destd=* | +dest=* | +des=* | +de=* | +d=*)
  72.         destdir=`echo ${arg} | sed 's/[+-]d[a-z]*=//'`
  73.         ;;
  74.     -forcesubdirs | +forcesubdirs | +forcesubdir | +forcesubdi | +forcesubd \
  75.     | +forcesub | +forcesu | +forces | +force | +forc | +for | +fo | +f)
  76.         forcesubdirs=${arg}
  77.         ;;
  78.     -languages=* | +languages=* | +language=* | +languag=* \
  79.         | +langua=* | +langu=* | +lang=* | +lan=* | +la=* \
  80.         | +l=*)
  81.         languages="${languages} `echo ${arg} | sed 's/[+-]l[a-z]*=//'`"
  82.         ;;
  83.     -gas | +gas | +ga | +g)
  84.         gas=yes
  85.         ;;
  86.     -help | +h | +help)
  87.         fatal=true
  88.         ;;
  89.     -nfp | +nfp | +nf | +n)
  90.         nfp=yes
  91.         ;;
  92.     -norecurse | +norecurse)
  93.         norecurse=true
  94.         ;;
  95.     -rm | +rm)
  96.         removing=${arg}
  97.         ;;
  98. #    -srcdir=* | +srcdir=* | +srcdi=* | +srcd=* | +src=* | +sr=* | +s=*)
  99. #        srcdir=`echo ${arg} | sed 's/[+-]s[a-z]*=//'`
  100. #        ;;
  101.     -target=* | +target=* | +targe=* | +targ=* | +tar=* | +ta=* | +t=*)
  102.         if [ -n "${targets}" ] ; then
  103.             forcesubdirs="+forcesubdirs"
  104.         fi
  105.  
  106.         newtargets="${targets} `echo ${arg} | sed 's/[+-]t[a-z]*=//'`"
  107.         targets="${newtargets}"
  108.         ;;
  109.     -template=* | +template=*)
  110.         template=`echo ${arg} | sed 's/[+-]template=//'`
  111.         ;;
  112.     +verbose | +verbos | +verbo | +verb | +ver | +ve | +v)
  113.         verbose=${arg}
  114.         ;;
  115.     -* | +*)
  116.         (echo ;
  117.         echo "Unrecognized option: \"${arg}\"". ;
  118.         echo) 1>&2
  119.         fatal=true
  120.         ;;
  121.     *)
  122.         if [ -n "${hosts}" ] ; then
  123.             forcesubdirs="+forcesubdirs"
  124.         fi
  125.  
  126.         newhosts="${hosts} ${arg}"
  127.         hosts=${newhosts}
  128.         ;;
  129.     esac
  130. done
  131.  
  132. if [ -n "${verbose}" ] ; then
  133.     echo `pwd`/configure $*
  134.     echo targets=\"${targets}\"
  135. fi
  136.  
  137. # process host and target only if not rebuilding configure itself or removing.
  138. if [ -z "${template}" -a -z "${removing}" -a -z "${fatal}" ] ; then
  139.     # Complain if an arg is missing
  140.     if [ -z "${hosts}" ] ; then
  141.         (echo ;
  142.         echo "configure: No HOST specified." ;
  143.         echo) 2>&1
  144.         fatal=true
  145.     fi
  146. fi
  147.  
  148. if [ -n "${fatal}" -o "${hosts}" = "help" ] ; then
  149.     (echo "Usage: configure HOST" ;
  150.     echo ;
  151.     echo "Options: [defaults in brackets]" ;
  152.     echo " +ansi        configure w/ANSI library. [no ansi lib]" ;
  153.     echo " +destdir=MYDIR    configure for installation into MYDIR. [/usr/local]" ;
  154.     echo " +forcesubdirs    configure in subdirectories.  [in source directories]" ;
  155.     echo " +lang=LANG    configure to build LANG. [gcc]" ;
  156.     echo " +help        print this message. [normal config]" ;
  157.     echo " +gas        configure the compilers for use with gas. [native as]" ;
  158.     echo " +nfp        configure the compilers default to soft floating point. [hard float]" ;
  159.     echo " +norecurse    configure this directory only. [recurse]" ;
  160.     echo " +rm        remove this configuration. [build a configuration]" ;
  161.     echo " +target=TARGET    configure for TARGET.  [TARGET = HOST]" ;
  162.     echo " +template=TEM    rebuild configure using TEM. [normal config]" ;
  163.     echo ;
  164.     echo "Where HOST and TARGET are something like \"vax\", \"sun3\", \"encore\", etc." ;
  165.     echo "Asking for more than one \"+target\" implies \"+forcesubdirs\".  Any other" ;
  166.     echo "options given will apply to all targets.") 1>&2
  167.  
  168.     if [ -r config.status ] ; then
  169.         cat config.status
  170.     fi
  171.  
  172.     exit 1
  173. fi
  174.  
  175. #### configure.in common parts come in here.
  176. # This file is a shell script fragment that supplies the information
  177. # necessary to tailor a template configure script into the configure
  178. # script appropriate for this directory.  For more information, check
  179. # any existing configure script.
  180.  
  181. configdirs=
  182. srctrigger=readline.c
  183. srcname="the readline library"
  184.  
  185. ## end of common part.
  186.  
  187. # are we rebuilding config itself?
  188. if [ -n "${template}" ] ; then
  189.     if [ ! -r ${template} ] ; then
  190.         echo "Can't find template ${template}."
  191.         exit 1
  192.     fi
  193.  
  194. # prep the template
  195.     sed -e '/^#### configure.in common parts come in here.$/,/^## end of common part.$/c\
  196. #### configure.in common parts come in here.\
  197. ## end of common part.' \
  198.     -e '/^#### configure.in per-host parts come in here.$/,/^## end of per-host part.$/c\
  199. #### configure.in per-host parts come in here.\
  200. ## end of per-host part.' \
  201.     -e '/^#### configure.in per-target parts come in here.$/,/^## end of per-target part.$/c\
  202. #### configure.in per-target parts come in here.\
  203. ## end of per-target part.' \
  204.     -e '/^#### configure.in post-target parts come in here.$/,/^## end of post-target part.$/c\
  205. #### configure.in post-target parts come in here.\
  206. ## end of post-target part.' \
  207.     < ${template} > template.new
  208.  
  209.     if [ -r configure.in ] ; then
  210.         if [ -z "`grep '^# per\-host:' configure.in`" ] ; then
  211.             echo `pwd`/configure.in has no "per-host:" line.
  212.             exit 1
  213.         fi
  214.  
  215.         if [ -z "`grep '^# per\-target:' configure.in`" ] ; then
  216.             echo `pwd`/configure.in has no "per-target:" line.
  217.             exit 1
  218.         fi
  219.  
  220.         # split configure.in into common, per-host, per-target,
  221.         # and post-target parts.  Post-target is optional.
  222.         sed -e '/^# per\-host:/,$d' configure.in > configure.com
  223.         sed -e '1,/^# per\-host:/d' -e '/^# per\-target:/,$d' configure.in > configure.hst
  224.         if grep -s '^# post-target:' configure.in ; then
  225.           sed -e '1,/^# per\-target:/d' -e '/^# post\-target:/,$d' configure.in > configure.tgt
  226.           sed -e '1,/^# post\-target:/d' configure.in > configure.pos
  227.         else
  228.           sed -e '1,/^# per\-target:/d' configure.in > configure.tgt
  229.           echo >configure.pos
  230.         fi
  231.  
  232.         # and insert them
  233.         sed -e '/^#### configure.in common parts come in here.$/  r configure.com' \
  234.             -e '/^#### configure.in per\-host parts come in here.$/  r configure.hst' \
  235.             -e '/^#### configure.in per\-target parts come in here.$/  r configure.tgt' \
  236.             -e '/^#### configure.in post\-target parts come in here.$/  r configure.pos' \
  237.             template.new > configure.new
  238.  
  239.         rm -f configure.com configure.tgt configure.hst configure.pos
  240.     else
  241.         echo Warning: no configure.in in `pwd`
  242.         cat ${template} >> configure
  243.     fi
  244.  
  245.     chmod a+x configure.new
  246.     rm template.new
  247. #    mv configure configure.old
  248.     mv configure.new configure
  249.     echo Rebuilt configure in `pwd`
  250.  
  251.     if [ -z "${norecurse}" ] ; then
  252.         # If template is relative path, make it absolute for recursing.
  253.         if echo "${template}" | grep -s '^/' ; then
  254.            true
  255.         else
  256.            template=`pwd`/${template}
  257.         fi
  258.  
  259.         while [ -n "${configdirs}" ] ; do
  260.             # set configdir to car of configdirs, configdirs to cdr of configdirs
  261.             set ${configdirs}; configdir=$1; shift; configdirs=$*
  262.  
  263.             if [ "`echo ${configdir}.*`" != "${configdir}.*" ] ; then
  264.                 targetspecificdirs=${configdir}.*
  265.             else
  266.                 targetspecificdirs=
  267.             fi
  268.  
  269.             for i in ${configdir} ${targetspecificdirs} ; do
  270.                 if [ -d $i ] ; then
  271.                     if [ -r $i/configure ] ; then
  272.                         (cd $i ;
  273.                             ./configure +template=${template} ${verbose})
  274.                     else
  275.                         echo No configure script in `pwd`/$i
  276.                     fi
  277.                 else
  278.                     echo Warning: directory $i is missing.
  279.                 fi
  280.             done
  281.         done
  282.     fi
  283.  
  284.     exit 0
  285. fi
  286.  
  287. # some sanity checks on configure.in
  288. if [ -z "${srctrigger}" ] ; then
  289.     echo srctrigger not set in configure.in. `pwd` not configured.
  290.     exit 1
  291. fi
  292.  
  293. for host in ${hosts} ; do
  294.     # Default other arg
  295.     if [ -z "${targets}" -o -n "${defaulttargets}" ] ; then
  296.         targets=${host}
  297.         defaulttargets=true
  298.     fi
  299.  
  300.     host_makefile_frag=config/hmake-${host}
  301.  
  302. #### configure.in per-host parts come in here.
  303.  
  304. ## end of per-host part.
  305.  
  306.  
  307.     for target in ${targets} ; do
  308.  
  309.         if [ -n "${verbose}" ] ; then
  310.             echo "    target=\"${target}\""
  311.         fi
  312.  
  313.         target_makefile_frag=config/tmake-${target}
  314.  
  315. #### configure.in per-target parts come in here.
  316.  
  317. ## end of per-target part.
  318.  
  319.         # Temporarily, we support only direct subdir builds.
  320.         hostsubdir=Host-${host}
  321.         targetsubdir=Target-${target}
  322.  
  323.         if [ -n "${removing}" ] ; then
  324.             if [ -n "${forcesubdirs}" ] ; then
  325.                 if [ -d "${hostsubdir}" ] ; then
  326.                     rm -rf ${hostsubdir}/${targetsubdir}
  327.  
  328.                     if [ -z "`(ls ${hostsubdir}) 2>&1 | grep Target-`" ] ; then
  329.                         rm -rf ${hostsubdir}
  330.                     fi
  331.                 else
  332.                     echo Warning: no `pwd`/${hostsubdir} to remove.
  333.                 fi
  334.             else
  335.                 rm -f ${Makefile} config.status ${links}
  336.             fi
  337.         else
  338.             if [ -n "${forcesubdirs}" ] ; then
  339.                 # check for existing status before allowing forced subdirs.
  340.                 if [ -f ${Makefile} ] ; then
  341.                     echo "${Makefile} already exists in source directory.  `pwd` not configured."
  342.                     exit 1
  343.                 fi
  344.  
  345.                 if [ ! -d ${hostsubdir} ] ; then mkdir ${hostsubdir} ; fi
  346.                 cd ${hostsubdir}
  347.  
  348.                 if [ ! -d ${targetsubdir} ] ; then mkdir ${targetsubdir} ; fi
  349.                 cd ${targetsubdir}
  350.  
  351.                 srcdir=../..
  352.             else
  353.                 # if not subdir builds, then make sure none exist.
  354.                 if [ -n "`(ls .) 2>&1 | grep Host-`" ] ; then
  355.                     echo "Configured subdirs exist.  `pwd` not configured."
  356.                     exit 1
  357.                 fi
  358.             fi
  359.  
  360.             # Find the source files, if location was not specified.
  361.             if [ -z "${srcdir}" ] ; then
  362.                 srcdirdefaulted=1
  363.                 srcdir=.
  364.                 if [ -n "${srctrigger}" -a ! -r ${srctrigger} ] ; then
  365.                     srcdir=..
  366.                 fi
  367.             fi
  368.  
  369.             if [ -n "${srctrigger}" -a ! -r ${srcdir}/${srctrigger} ] ; then
  370.                 if [ -z "${srcdirdefaulted}" ] ; then
  371.                     echo "${progname}: Can't find ${srcname} sources in `pwd`/${srcdir}" 1>&2
  372.                 else
  373.                     echo "${progname}: Can't find ${srcname} sources in `pwd`/. or `pwd`/.." 1>&2
  374.                 fi
  375.  
  376.                 echo \(At least ${srctrigger} is missing.\) 1>&2
  377.                 exit 1
  378.             fi
  379.  
  380.             # Set up the list of links to be made.
  381.             # ${links} is the list of link names, and ${files} is the list of names to link to.
  382.  
  383.             # Make the links.
  384.             while [ -n "${files}" ] ; do
  385.                 # set file to car of files, files to cdr of files
  386.                 set ${files}; file=$1; shift; files=$*
  387.                 set ${links}; link=$1; shift; links=$*
  388.  
  389.                 if [ ! -r ${srcdir}/${file} ] ; then
  390.                     echo "${progname}: cannot create a link \"${link}\"," 1>&2
  391.                     echo "since the file \"${file}\" does not exist." 1>&2
  392.                     exit 1
  393.                 fi
  394.  
  395.                 ${remove} -f ${link}
  396.                 rm -f config.status
  397.                 # Make a symlink if possible, otherwise try a hard link
  398.                 ${symbolic_link} ${srcdir}/${file} ${link} 2>/dev/null || ${hard_link} ${srcdir}/${file} ${link}
  399.  
  400.                 if [ ! -r ${link} ] ; then
  401.                     echo "${progname}: unable to link \"${link}\" to \"${srcdir}/${file}\"." 1>&2
  402.                     exit 1
  403.                 fi
  404.                 echo "Linked \"${link}\" to \"${srcdir}/${file}\"."
  405.             done
  406.  
  407.             # Create a .gdbinit file which runs the one in srcdir
  408.             # and tells GDB to look there for source files.
  409.  
  410.             case ${srcdir} in
  411.             .)
  412.                 ;;
  413.             *)
  414.                 echo "dir ." > .gdbinit
  415.                 echo "dir ${srcdir}" >> .gdbinit
  416.                 echo "source ${srcdir}/.gdbinit" >> .gdbinit
  417.                 ;;
  418.             esac
  419.  
  420.             # Install a makefile, and make it set VPATH
  421.             # if necessary so that the sources are found.
  422.             # Also change its value of srcdir.
  423.  
  424.         # FIXME-someday: This business of always writing to .tem and mv back
  425.         # is so that I don't screw things up while developing.  Once this
  426.         # template is stable, these should be optimized. xoxorich.
  427.  
  428.             # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
  429.             if [ "${host}" != "${target}" ] ; then
  430.                 echo "CROSS=-DCROSS_COMPILE" > ${Makefile}
  431.                 echo "ALL=start.encap" >> ${Makefile}
  432.             else
  433.                 echo "ALL=all.internal" > ${Makefile}
  434.             fi
  435.  
  436.             # set target, host, VPATH
  437.             echo "host = ${host}" >> ${Makefile}
  438.             echo "target = ${target}" >> ${Makefile}
  439.  
  440.             if [ -n "${forcesubdirs}" ] ; then
  441.                 echo "subdir = /${hostsubdir}/${targetsubdir}" >> ${Makefile}
  442.             else
  443.                 echo "subdir =" >> ${Makefile}
  444.             fi
  445.  
  446.         #    echo "workdir = `pwd`" >> ${Makefile}
  447.             echo "VPATH = ${srcdir}" >> ${Makefile}
  448.  
  449.             # add "Makefile.in" (or whatever it's called)
  450.             cat ${srcdir}/${Makefile_in} >> ${Makefile}
  451.  
  452.             # Conditionalize the makefile for this host.
  453.             if [ -f ${srcdir}/${host_makefile_frag} ] ; then
  454.                 sed -e "/^####/  r ${srcdir}/${host_makefile_frag}" ${Makefile} > Makefile.tem
  455.                 mv Makefile.tem ${Makefile}
  456.             fi
  457.  
  458.             # Conditionalize the makefile for this target.
  459.             if [ -f ${srcdir}/${target_makefile_frag} ] ; then
  460.                 sed -e "/^####/  r ${srcdir}/${target_makefile_frag}" ${Makefile} > Makefile.tem
  461.                 mv Makefile.tem ${Makefile}
  462.             fi
  463.  
  464.             # set srcdir
  465.             sed "s@^srcdir = \.@srcdir = ${srcdir}@" ${Makefile} > Makefile.tem
  466.             mv Makefile.tem ${Makefile}
  467.  
  468.             # set destdir
  469.             if [ -n "${destdir}" ] ; then
  470.                 sed "s:^destdir =.*$:destdir = ${destdir}:" ${Makefile} > Makefile.tem
  471.                 mv Makefile.tem ${Makefile}
  472.             fi
  473.  
  474.             # reset SUBDIRS
  475.             sed "s:^SUBDIRS =.*$:SUBDIRS = ${configdirs}:" ${Makefile} > Makefile.tem
  476.             mv Makefile.tem ${Makefile}
  477.  
  478.             # reset NONSUBDIRS
  479.             sed "s:^NONSUBDIRS =.*$:NONSUBDIRS = ${noconfigdirs}:" ${Makefile} > Makefile.tem
  480.             mv Makefile.tem ${Makefile}
  481.  
  482.             using=
  483.             if [ -f ${srcdir}/${host_makefile_frag} ] ; then
  484.                 using=" using \"${host_makefile_frag}\""
  485.             fi
  486.  
  487.             if [ -f ${srcdir}/${target_makefile_frag} ] ; then
  488.                 if [ -z "${using}" ] ; then
  489.                     andusing=" using \"${target_makefile_frag}\""
  490.                 else
  491.                     andusing="${using} and \"${target_makefile_frag}\""
  492.                 fi
  493.             else
  494.                 andusing=${using}
  495.             fi
  496.  
  497.             echo "Created \"${Makefile}\"" in `pwd`${andusing}.
  498.  
  499. #### configure.in post-target parts come in here.
  500.  
  501. ## end of post-target part.
  502.  
  503.             if [ "${host}" = "${target}" ] ; then
  504.                 echo "Links are now set up for use with a ${target}." \
  505.                     > config.status
  506.         #            | tee ${srcdir}/config.status
  507.             else
  508.                 echo "Links are now set up for host ${host} and target ${target}." \
  509.                     > config.status
  510.         #            | tee ${srcdir}/config.status
  511.             fi
  512.  
  513.             originaldir=`pwd`
  514.             cd ${srcdir}
  515.         fi
  516.     done # for each target
  517.  
  518. #    # Now build a Makefile for this host.
  519. #    if [ -n "${forcesubdirs}" ] ; then
  520. #        cd ${hostsubdir}
  521. #        cat > GNUmakefile << E!O!F
  522. ## Makefile generated by configure for host ${host}.
  523. #
  524. #%:
  525. #    for i in ${targets} ; do \
  526. #        $(MAKE) -C Target-\$i \$@
  527. #
  528. #all clean stage1 stage2 stage3 stage4etags tags TAGS
  529. #E!O!F
  530. #    fi
  531. done # for each host
  532.  
  533. # If there are subdirectories, then recurse. 
  534.  
  535. if [ -n "${norecurse}" -o -z "${configdirs}" ] ; then exit 0 ; fi
  536.  
  537. # configdirs is not null
  538. for configdir in ${configdirs} ; do
  539.     echo Configuring ${configdir}...
  540.     specifics=
  541.     commons=
  542.  
  543.     if [ -n "${defaulttargets}" ] ; then
  544.         for host in ${hosts} ; do
  545.             if [ -d ${configdir}.${host} ] ; then
  546.                 newspecifics="${specifics} ${host}"
  547.                 specifics=${newspecifics}
  548.             else
  549.                 newcommons="${commons} ${host}"
  550.                 commons=${newcommons}
  551.             fi # if target specific
  552.         done # for each host
  553.  
  554.         if [ -n "${commons}" ] ; then
  555.             if [ -d ${configdir} ] ; then
  556.                 (cd ${configdir} ;
  557.                     ./configure ${commons} ${verbose} ${forcesubdirs} ${removing} +destdir=${destdir}) \
  558.                     | sed 's/^/    /'
  559.             else
  560.                 echo Warning: directory \"${configdir}\" is missing.
  561.             fi
  562.         fi # if any common hosts
  563.  
  564.         if [ -n "${specifics}" ] ; then
  565.             for host in ${specifics} ; do
  566.                 echo Configuring target specific directory ${configdir}.${host}...
  567.                 (cd ${configdir}.${host} ;
  568.                     ./configure ${host} ${verbose} ${forcesubdirs} ${removing} +destdir=${destdir}) \
  569.                     | sed 's/^/    /'
  570.             done # for host in specifics
  571.         fi # if there are any specifics
  572.     else
  573.  
  574.         for target in ${targets} ; do
  575.             if [ -d ${configdir}.${target} ] ; then
  576.                 newspecifics="${specifics} ${target}"
  577.                 specifics=${newspecifics}
  578.             else
  579.                 newcommons="${commons} +target=${target}"
  580.                 commons=${newcommons}
  581.             fi
  582.  
  583.         done # check for target specific dir override
  584.  
  585.         if [ -n "${verbose}" ] ; then
  586.             echo "    "commons=\"${commons}\"
  587.             echo "    "specifics=\"${specifics}\"
  588.         fi # if verbose
  589.  
  590.         if [ -n "${commons}" ] ; then
  591.             if [ -d ${configdir} ] ; then
  592.                 (cd ${configdir} ;
  593.                     ./configure ${hosts} ${verbose} ${forcesubdirs} ${removing} \
  594.                         ${commons} +destdir=${destdir}) \
  595.                     | sed 's/^/    /'
  596.             else
  597.                 echo Warning: directory \"${configdir}\" is missing.
  598.             fi
  599.         fi # if any commons
  600.  
  601.         if [ -n "${specifics}" ] ; then
  602.             for target in ${specifics} ; do
  603.                 echo Configuring target specific directory ${configdir}.${target}...
  604.                 (cd ${configdir}.${target} ;
  605.                     ./configure ${hosts} ${verbose} ${forcesubdirs} ${removing} \
  606.                         "+target=${target}" +destdir=${destdir}) \
  607.                     | sed 's/^/    /'
  608.             done
  609.         fi # if any specifics
  610.     fi # not default targets
  611. done
  612.  
  613. exit 0
  614.  
  615. #
  616. # $Log: configure,v $
  617. # Revision 1.22  1991/07/20  01:22:30  rich
  618. # propogate gdb changes and destdir fix
  619. #
  620. # Revision 1.21  1991/07/20  00:55:20  gnu
  621. # Roll in new configure that handles GDB.  Make sure that the "configure"
  622. # that is checked-in reflects the latest "configure.in", which includes gdb.
  623. #
  624. # Revision 1.9  1991/07/06  04:35:51  gnu
  625. # Fix bug in configure when iterating targets.
  626. # Depend on alldeps.mak, not ${srcdir}/alldeps.mak, so it can be found
  627. # in either spot.
  628. #
  629. # Revision 1.8  1991/07/05  00:04:58  gnu
  630. # Thu Jul  4 14:47:06 1991  John Gilmore  (gnu at cygint.cygnus.com)
  631. #
  632. #         * configure.in, Makefile.in:  Avoid rebuilding "depend" as much.
  633. #         Avoid declaring Makefile dependencies, because GNU Make stupidly
  634. #         tries to update it if we do.
  635. #
  636. #         * coffread.c:  Revise for minor changes to bfd internal coff
  637. #         indexes.
  638. #
  639. #         * configure:  If -template= is given a relative path, make it
  640. #         absolute before recurring in subdirectories.
  641. #
  642. # Revision 1.7  1991/07/04  15:59:46  gnu
  643. # Make gdb work with configure.  Only thing that doesn't work is the -list
  644. # option (as far as I know).
  645. #
  646. # Revision 1.6  1991/06/04  07:28:16  gnu
  647. # Change GDB over to GNU General Public License version 2.
  648. #
  649. # Revision 1.5  1991/05/19  07:26:54  rich
  650. # configure changes and -opcode.h movement.
  651. #
  652. # Revision 1.4  1991/05/19  00:16:45  rich
  653. # Configure for gdb.
  654. #
  655. # Revision 1.10  1991/05/04  00:58:38  rich
  656. # Fix program name bug.
  657. #
  658. # Revision 1.9  1991/05/03  19:14:18  rich
  659. # Changed getopt to libiberty, commented out an aborted attempt at host
  660. # level Makefiles because it caused errors on +rm, add a warning for
  661. # directories expected to be removed on +rm but that don't exist.
  662. #
  663. # Revision 1.8  1991/04/24  16:50:59  rich
  664. # Three staging checkpoint.
  665. #
  666. # Revision 1.7  1991/04/17  01:34:47  rich
  667. # Added getopt for binutils, fixed problem with host dependancies in
  668. # configure.template.
  669. #
  670. # Revision 1.6  1991/04/16  00:18:44  rich
  671. # Now handles multiple hosts and targets.
  672. #
  673. # Revision 1.5  1991/04/15  23:43:44  rich
  674. # Now handles multiple hosts and targets.
  675. #
  676. # Revision 1.4  1991/04/13  02:11:03  rich
  677. # Config cut 3.  We now almost install a29k.
  678. #
  679. # Revision 1.3  1991/04/11  02:41:54  rich
  680. # Cut 2 config.  Subdirs.
  681. #
  682. #
  683. #
  684.  
  685. #
  686. # Local Variables:
  687. # fill-column: 131
  688. # End:
  689. #
  690.  
  691. # end of configure.template
  692.